package com.ad.sponsor.service;

import com.ad.common.exception.AdException;
import com.ad.sponsor.vo.*;

/**
 * @author: megan
 * @mail: meganmail@vip.qq.com
 * @date: 2019/3/28 17:19
 * @version: v1.0
 * @description:
 */
public interface IAdUnitService {

    /**
     * 创建推广单元
     *
     * @param request
     * @return
     * @throws AdException
     */
    AdUnitResponse createUnit(AdUnitRequest request) throws AdException;

    /**
     * 创建推广单元 - 关键词
     *
     * @param request
     * @return
     * @throws AdException
     */
    AdUnitKeywordResponse createUnitKeyword(AdUnitKeywordRequest request) throws AdException;

    /**
     * 创建推广单元 兴趣
     *
     * @param request
     * @return
     * @throws AdException
     */
    AdUnitItResponse createUnitIt(AdUnitItRequest request) throws AdException;

    /**
     * 创建推广单元 地域
     *
     * @param request
     * @return
     * @throws AdException
     */
    AdUnitDistrictResponse createUnitDistrict(AdUnitDistrictRequest request) throws AdException;

    /**
     * 创建  创意和推广单元关联
     *
     * @param request
     * @return
     * @throws AdException
     */
    CreativeUnitResponse createCreativeUnit(CreativeUnitRequest request) throws AdException;
}
